﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<PagedList<kysec.RAL.EFToMySql.vw_msg_repmsg>>" %>
<%@ Import Namespace="kysec.RAL.EFToMySql" %>
<%@ Import Namespace="Webdiyer.WebControls.Mvc"%>

<%string type = Request.QueryString["type"];
    if(Model.Count == 0) { %>
    <span style="text-align:center; color:Red; font-size:16px; margin:0px 40px 0px 0px;">没有任何留言信息……,赶快留言您的宝贵信息吧！</span>
    <%}else{%>
    <ul class="msg_Tech_List">
          <%foreach (kysec.RAL.EFToMySql.vw_msg_repmsg item in Model)
          {%>
              <li>
              <div class="Msg_title"><span style="float:left;margin-left:10px;">主题：<%=item.c_vc_title %></span><span style="float:right;margin-right:10px;">留言时间：<%=item.c_dt_publishedTime.ToShortDateString() %></span></div>
              <div class="Msg_content"><%=item.msgContent %></div>
             
         <%if (item.c_b_isReplay)
           {%>
            <p style="padding-left:20px;"><font style="color:Red;">回复：</font><%=item.replayContent%></p>
         <% }%> </li>
          <%}%>
    </ul>
    <%} %>
    <%=Html.AjaxPager(Model, new PagerOptions() { CssClass = "mvcPager", PageIndexParameterName = "id", ShowMorePagerItems = false, AlwaysShowFirstLastPageNumber = false, ShowPageIndexBox = false, PageIndexBoxWrapperFormatString = "页{0}" }, new AjaxOptions() { UpdateTargetId = "page" })%>